(function ($) {
    $.fn.responseTip = function(options){
        var $this = this;
        var minute = 0, second = 0;
        if(typeof options.time === 'number'){
            minute = (Math.floor(options.time / 60) / 100).toFixed(2).substring(2);
            second = (options.time % 60 / 100).toFixed(2).substring(2);
        }
        var html = [
            '<div class="com_pop_ans_result correct ' + options.type + '">',
            '    <p class="ans_result_tit">',
            '       <span>' + options.msg + '</span>',
            '    </p>',
            '    <div class="ans_result_content">',
            '        <div class="ans_result_pics">',
            '            <span class="pics_t"></span>',
            '            <span class="pics_r"></span>',
            '            <span class="pics_b"></span>',
            '            <span class="pics_l"></span>',
            '        </div>',
            '        <p class="ans_result_time">',
            // '            <span class="com_pop_minute">' + minute + '</span><span>' + options.text.minute + '</span>',
            // '            <span class="com_pop_second">' + second + '</span><span>' + options.text.second + '</span>',
            '               <span class="com_pop_minute">' + minute + ' : ' + second + '</span>',
            '        </p>',
            '        <p class="ans_result_bottom">' + options.text.tip + '</p>',
            '    </div>',
            '</div>'
        ].join("");
        var $tip = $(html);
        var destroy = function(){
            $tip.remove();
            options.destroyed && options.destroyed();
        };
        $this.append($tip);
        $this.one('click', destroy);
        options.created && options.created();
        !!options.auto && setTimeout(destroy, +options.auto);
    };
})(window.jQuery);